package com.management.service;

import com.management.controller.form.*;
import com.management.model.DefectRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.management.utils.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 龙世超
 * @since 2022-03-23
 */
public interface DefectRecordService extends IService<DefectRecord> {

    Result FindAllProject();

    Result FindAllDefect();

    Result AddDefectProject(CreateDefectProjectForm defectProject);

    Result FindAllDefectRecords(GetRecordsPageForm getRecordsPageForm);

    Result FindAllDefectProject();

    Result FindDefectProjectById(GetDefectProjectByIdForm projectByIdForm);

    Result DeleteRecordById(GetDefectProjectByIdForm projectByIdForm);

    Result editById(GetDefectProjectByIdForm projectByIdForm);

    Result changeRecord(EditByIdForm editByIdForm);

    Result Findassignee(String projectName);

    Result changassignee(changeassignForm changeassignForm);

    Result FindRecordById(GetDefectProjectByIdForm projectByIdForm);

    Result SaveHandle(SaveHandleForm saveHandleForm);

    Result getStateCount(GetStateCountForm getStateCountForm);

    Result getAllTypeCount();

    Result getTypeCount(GetStateCountForm getStateCountForm);

    Result getAllSeverityCount();

    Result getSeverityCount(GetSeverityCountForm getSeverityCountForm);

    Result deleteRecords(deleteRecordsForm deleteRecordsForm);

    Result FindDefectRecordsByaccountId(GetRecordsPageForm getRecordsPageForm);
}
